Skip to content

add animal type field for animal contact exposure category#13913

Merged
obinna-h-n merged 1 commit into
developmentfrom
13887-exposure-form-redesign
Apr 23, 2026
Merged

add animal type field for animal contact exposure category#13913
obinna-h-n merged 1 commit into
developmentfrom
13887-exposure-form-redesign

Conversation

@obinna-h-n
Copy link
Copy Markdown
Contributor

@obinna-h-n obinna-h-n commented Apr 23, 2026

Summary by CodeRabbit

  • New Features

    • Added a new field to specify the type of animal in exposure records. The field is automatically displayed or hidden based on the animal category selection and whether the exposure is classified as animal contact-related.
  • Chores

    • Removed unused helper methods and code imports.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 23, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e31e307c-cb5e-46c6-a6da-cf260263af78

📥 Commits

Reviewing files that changed from the base of the PR and between 72ac3ed and 3a1ff64.

📒 Files selected for processing (1)
  • sormas-ui/src/main/java/de/symeda/sormas/ui/exposure/ExposureForm.java

📝 Walkthrough

Walkthrough

A new typeOfAnimalField is added to the ExposureForm UI, bound to ExposureDto.TYPE_OF_ANIMAL. The field implements conditional visibility and reset behavior based on related form fields (conditionOfAnimalField, animalCategoryField) and exposure category type. Unused helper methods and imports are also removed.

Changes

Cohort / File(s) Summary
Exposure Form Field Addition
sormas-ui/src/main/java/de/symeda/sormas/ui/exposure/ExposureForm.java
Adds typeOfAnimalField with dependent visibility/reset logic tied to conditionOfAnimalField, animalCategoryField, and ANIMAL_CONTACT category selection. Includes value restoration logic in setValue method. Removes two unused private layout helper methods and drops unused Field import.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Poem

🐰 A field for creatures big and small,
Dependent on the contact call,
When animals are in the frame,
The form now asks their noble name!
Hidden, shown, and cleared with care—
A rabbit's touch of logic fair! 🌿

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch 13887-exposure-form-redesign

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@obinna-h-n obinna-h-n merged commit af2503d into development Apr 23, 2026
4 of 5 checks passed
@obinna-h-n obinna-h-n deleted the 13887-exposure-form-redesign branch April 23, 2026 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant